package es.unex.meigas.extLoadSaveProject;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;

import es.unex.meigas.core.DasocraticProject;
import es.unex.meigas.extBase.AbstractMeigasExtension;
import es.unex.meigas.extBase.IMeigasExtension;
import es.unex.meigas.gui.MeigasPanel;


public class CloseExtension extends AbstractMeigasExtension{

	public String getName(){

		return "Cerrar";

	}

	public String getMenuName() {

		return "Archivo";

	}

	public Icon getIcon() {

		Icon icon = new ImageIcon(getClass().getClassLoader()
				.getResource("images/close.png"));
		return icon;
	}

	public void execute(MeigasPanel meigasWindow) {

		//meigasWindow.windowClosing(null);
		//meigasWindow.setVisible(false);

	}

	public void initialize() {

	}

	public boolean showInContextMenu() {

		return false;

	}

	public boolean showInMenuBar(MeigasPanel panel) {

		return true;

	}

	public boolean isEnabled(MeigasPanel window) {

		return true;

	}

}
